package com.yxmadoc.umlproject.repository;

import com.yxmadoc.umlproject.model.RepairPrice;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RepairPriceRepository extends JpaRepository<RepairPrice, Integer> {

    Page<RepairPrice> findAllByRepairerId(String repairerID, Pageable pageable);

    Page<RepairPrice> findAllByOrderId(Integer orderId, Pageable pageable);

}
